//
//  PlanNewsViewCell.m
//  PosApp
//
//  Created by 刘萍 on 2018/9/10.
//  Copyright © 2018年 李英新. All rights reserved.
//

#import "PlanNewsViewCell.h"

@implementation PlanNewsViewCell

- (void)setModel:(PlanNewsCellModel *)model {
    self.CellTimeLabel.text = [NSString stringWithFormat:@"(%@)",model.sj];
    if ([model.detailed_type isEqual:@"1"]) {
        self.CellPriceLabel.text = [NSString stringWithFormat:@"-%@",model.detailed_money];
        self.CellClassLabel.text = [NSString stringWithFormat:@"消费金额"];
        
    }else{
        self.CellPriceLabel.text = [NSString stringWithFormat:@"+%@",model.detailed_money];
        self.CellClassLabel.text = [NSString stringWithFormat:@"还款金额"];
    }
    
    if (self.IsShow) {
        if ([model.detailed_result isEqual:@"2"]) {
            self.CellBeizhuZLabel.hidden = YES;
        }else{
            self.CellBeizhuZLabel.hidden = NO;
            self.CellBeizhuZLabel.text = [NSString stringWithFormat:@"(%@)",model.detailed_bak];
        }
    }else{
        self.CellBeizhuZLabel.hidden = YES;
    }

    
}


- (IBAction)ClickOnBtnOfPLanNewsViewCell:(id)sender {
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
